﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Frw.Mappings
{
    public interface IMappable<DtoObject, DALObject>
    {
        DtoObject ToDTO(DALObject source);
        DALObject FromDTO(DtoObject source);

        IEnumerable<DtoObject> ToDTO(IQueryable<DALObject> objects);
        IEnumerable<DALObject> FromDTO(IEnumerable<DtoObject> objects);
    }
}
